package com.efivestar.idm.api.util.weixin;

import com.efivestar.idm.api.util.weixin.bean.WeiXinUser;

public class ContextHolder {
    private static ThreadLocal<WeiXinUser> weiXinUserThreadLocal = new ThreadLocal<>();

    public static WeiXinUser getWeixinUser() {
       return weiXinUserThreadLocal.get();
    }

    public static void removeWeixinUser(){
        weiXinUserThreadLocal.remove();
    }

    public static void putWeixinUser(WeiXinUser weiXinUser){
        weiXinUserThreadLocal.set(weiXinUser);
    }


}
